import { defineStore } from "pinia";
import {getDataRequest} from '@/api/data/index';
import type {ReportDataModel} from '@/api/data/model/index';

export interface dataStoreType {
    reportData:ReportDataModel
}

const useDataStore = defineStore("data",{
    state:():dataStoreType => {
        return{
            reportData:{}
        }
    },
    actions:{
        async getData(){
            const re = await getDataRequest()
            console.log(re);
            
        }
    },
    getters:{

    }
})

export default useDataStore